package com.yuexun.dhdoctor.module.my.api;


import com.yuexun.dhdoctor.base.BaseEntity;
import com.yuexun.dhdoctor.module.my.bean.MessageCountBean;
import com.yuexun.dhdoctor.module.my.bean.MessageInfoBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by work-jx on 2016/11/23.
 */
public interface MessageApi {
    @FormUrlEncoded
    @POST("inquireNotificationList.json?")
    Observable<MessageInfoBean> messageList(@FieldMap Map<String, String> praise);

    //更新已读
    @FormUrlEncoded
    @POST("updateNotificationState.json?")
    Observable<BaseEntity> updateMessageState(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("inquireNotificationCount.json?")
    Observable<MessageCountBean> getMessageCount(@FieldMap Map<String, String> praise);

}
